package com.lin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lin
 * @since 2022-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("device")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("code")
    private String code;

    @TableField("name")
    private String name;

    @TableField("gas_id")
    private Integer gasId;

    @TableField("object_unit")
    private String objectUnit;

    @TableField("department_did")
    private Integer departmentDid;

    @TableField("manager")
    private String manager;

    @TableField("ip")
    private String ip;

    @TableField("port")
    private Integer port;

    @TableField("channel")
    private Integer channel;

    @TableField("ad_lower")
    private String adLower;

    @TableField("ad_upper")
    private String adUpper;

    @TableField("address_plc")
    private String addressPlc;

    @TableField("green_lower")
    private Integer greenLower;

    @TableField("green_upper")
    private Integer greenUpper;

    @TableField("green_light_id")
    private Integer greenLightId;

    @TableField("green_sound_id")
    private Integer greenSoundId;

    @TableField("yellow_lower")
    private Integer yellowLower;

    @TableField("yellow_upper")
    private Integer yellowUpper;

    @TableField("yellow_light_id")
    private Integer yellowLightId;

    @TableField("yellow_sound_id")
    private Integer yellowSoundId;

    @TableField("red_lower")
    private Integer redLower;

    @TableField("red_upper")
    private Integer redUpper;

    @TableField("red_light_id")
    private Integer redLightId;

    @TableField("red_sound_id")
    private Integer redSoundId;

    @TableField("value")
    private Double value;

    @TableField(value = "update_time")
    private Long updateTime;

    @TableField("description")
    private String description;

    @TableField("deleted")
    private Boolean deleted;


    public static final String ID = "id";

    public static final String CODE = "code";

    public static final String NAME = "name";

    public static final String GAS_ID = "gas_id";

    public static final String OBJECT_UNIT = "object_unit";

    public static final String DEPARTMENT_DID = "department_did";

    public static final String MANAGER = "manager";

    public static final String IP = "ip";

    public static final String PORT = "port";

    public static final String CHANNEL = "channel";

    public static final String AD_LOWER = "ad_lower";

    public static final String AD_UPPER = "ad_upper";

    public static final String ADDRESS_PLC = "address_plc";

    public static final String GREEN_LOWER = "green_lower";

    public static final String GREEN_UPPER = "green_upper";

    public static final String GREEN_LIGHT_ID = "green_light_id";

    public static final String GREEN_SOUND_ID = "green_sound_id";

    public static final String YELLOW_LOWER = "yellow_lower";

    public static final String YELLOW_UPPER = "yellow_upper";

    public static final String YELLOW_LIGHT_ID = "yellow_light_id";

    public static final String YELLOW_SOUND_ID = "yellow_sound_id";

    public static final String RED_LOWER = "red_lower";

    public static final String RED_UPPER = "red_upper";

    public static final String RED_LIGHT_ID = "red_light_id";

    public static final String RED_SOUND_ID = "red_sound_id";

    public static final String VALUE = "value";

    public static final String UPDATE_TIME = "update_time";

    public static final String DESCRIPTION = "description";

    public static final String DELETED = "deleted";

}
